$(document).ready(function(){
	$('.shadow-collapse, .hidden-block').css({'display' : 'none'});
	$('.link-collapse a').click(function(event){ 
		event.preventDefault(); 
		var parentLi = $(this).closest('li');
		var showBlocks = $('.shadow-collapse, .hidden-block', parentLi);
		var option = showBlocks.css('display');
		if(option == 'none'){
			parentLi.addClass('open');
			showBlocks.slideToggle('slow');
		}else{
			showBlocks.slideToggle('slow', function(){
				parentLi.removeClass('open');
			});
		}
	});
	
	$('.roll-up a').click(function(){
		var mainLi = $(this).closest('li');
		var hideBlocks = $('.shadow-collapse, .hidden-block', mainLi);
		hideBlocks.slideToggle('slow', function(){
			mainLi.removeClass('open');
		});
	});
});